<?php
ob_start();
require ("../config.php");
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
$date = date("d/m/Y");
?>

<!DOCTYPE html>    
<html>
<head>
    <meta charset="utf-8">
    <title>.:Welcome Báo Điện Tử LTW_N5:.</title>
    <link rel="stylesheet" href="../includes/style.css" type="text/css"/>
    <link rel="stylesheet" href="../giaodien/styles/style-giaodien.css" type="text/css"/>
    <script language="javascript" src="../includes/addons/jquery-1.11.0.js"></script>
    <script language="javascript" src="../includes/addons/jquery-migrate-1.2.1.min.js"></script>
    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
	<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
	<script language="javascript" src="../includes/addons/ckeditor/ckeditor.js"></script>
    <script language="javascript" src="../giaodien/scripts/hieu_ung.js"></script>
    <script language="javascript" src="../giaodien/scripts/functions.js"></script>
    <script language="javascript" src="http://rilwis.googlecode.com/svn/trunk/weather.min.js"></script>    
</head>

<body>
   
<div align='center'>
<table class="1 bangchinh">
	<tr><!--table1 dong1-->
        <td >
        <table class="2">
        	<tr><!--table2 dong1 _ hien thi img head + Menu-->
            	<td >            
            	<div>
               	<table class="3 menu">
                    <tr><!--table3 dong1-->
                        <td>
                             <img src="../images/headpic.jpg" width="780px" height="226"/>
                        </td>
                    </tr>
                    <tr><!--table3 dong2-->
                        <td><menu id="menu_chinh">
                            <ul>
                                <li><a href="default.php">Trang chủ</a></li>
                                <li><a href="kinhte.php">Kinh tế</a></li>
                                <li><a href="chinhtri.php">Chính trị</a></li>
                                <li><a href="vanhoa.php">Văn hóa</a></li>
                                <li><a href="thethao.php">Thể thao</a></li>
                                <li><a href="giaoduc.php">Giáo dục</a></li>
                                <li><a href="congnghett.php">Công nghệ</a></li>
                                <li><a href ="dienanh.php">Điện Ảnh</a></li>
                                <li><a href="lienhe.php">Liên hệ</a></li>
                            </ul>
                            </menu>                        
                        </td>   
                    </tr>
				</table>end 3<!--end table3-->
           </div>
           </td>
      </tr>
      <tr><!--table2 dong3 _ Hien thi ngay-->
        <td>
        <table class="4">
          <tr><!--table4 dong1-->
            <td><span class="ngay"> Ngày <?php echo $date; ?></span></td>
            <td>
            	<embed src="../images/chao.swf" width="470px" height="20px" align="center"/>
           	</td>
          </tr>
        </table>end 4<!--end table4-->
        </td>
      </tr>    
	  <tr>
        <td >
        <table class="5">
          <tr>
            <td >
            <table class="6 menu_bien">
              
			  <?php 
			  if(isset($_SESSION["tendn"]))
			  {
			$matv=addslashes($_SESSION["matv"]);
              echo '<tr>';
                echo '<td width="100%" height="10" valign="top" class="row_title" bgcolor="#BFE6FE">';
				echo '<div align="center">';
				echo '<embed src="../images/main.swf" width="158" height="17" align="center" /></div>';
            	echo '<td>';
              echo '</tr>';
              echo '<tr>';
                echo '<td width="100%" ><a href="chinhsuatv.php?chinhsuatv='.$matv.'"> Hồ Sơ Cá Nhân</a></td>';
              echo '</tr>';
              echo '<tr>';
             	echo '<td width="100%" ><a href="doipas.php?doipas='.$matv.'">Đổi Mật Khẩu</a></td>';
              echo '</tr>';
              echo '<tr>';
              	echo '<td width="100%"  ><a href="dagoi.php?dagoi='.$matv.'">Các Bài Đã Gởi</a></td>';
              echo '</tr>';
              echo '<tr>';
              	echo '<td width="100%" ><a href="goibai.php?goibai='.$matv.'">Gởi Bài Viết</a></td>';
              echo '</tr>';
              echo '<tr>';
			  	if ($_SESSION['cap']==2){		//DangNhapmod		
              	echo '<td width="100%" ><a href="mod/index.php"  target="top" >Moderator Control Panel</a></td>';
				};
              echo '</tr>';
              echo '<tr>';
              	echo '<td width="100%" ><a href="dangxuat.php">Đăng Xuất <span class="tendn">('.$_SESSION["tendn"].')</span></td>';
              echo '</tr>';
			  } 
			  
			  else 
			  {
			  	echo '<tr>';
					echo '<td><div class="nav_dangnhap"><a href="login.php">Đăng Nhập</a></div></td>';
              	echo '</tr>';
				echo '<tr>';  
					echo '<td><a href="//24h.com.vn" target="_blank"><img src="../images/24h.jpg" /></td>';
				echo '</tr>';
				echo '<tr>';  
					echo '<td><a href="//vnexpress.net" target="_blank"><img src="../images/vnexpress.png" /></td>';
				echo '</tr>';
				echo '<tr>';  
					echo '<td><a href="//tuoitre.vn" target="_blank"><img src="../images/tuoitre.jpg" /></td>';
				echo '</tr>';
				echo '<tr>';  
					echo '<td><a href="//vietnamnet.vn" target="_blank"><img src="../images/vietnamnet.jpg" /></td>';
				echo '</tr>';				
			  }
			  ?>
              	
               <tr>
                <td>
                </td>
              </tr>
              <tr>
                <td>
				<p align='center'><embed  src="../images/TK.swf" width="158" height="17" align='center' />                
                </p>
                </td>
              </tr>
              <tr>
                <td>
                Tổng Số Truy Cập: <?php include "counter.php"; ?></td>
              </tr>
              <tr>
                <td>Tổng Số Thành Viên: <?php echo $total1; ?></td></tr>
              <tr>
                <td>Tổng Số Bài Viết: <?php echo $total2; ?></td></tr>
              <tr>
                <td>Duyệt: <?php echo $total4; ?>|Chưa Duyệt:<?php echo $total5; ?> </td></tr>
              <tr>
                <td>Tổng Số Liên Hệ-QC:<?php echo $total3; ?>  </td></tr>
              <tr>
                <td></td>
              </tr>
              <tr>
        	    	<td>
					<p align="center"><embed src="../images/QC.swf" width="158" height="17" align='center' /></p></td>
              </tr>
				<tr>
                <td >
				<p align="left">
        <a href="http://nhacso.com">
	    <embed src="../images/nhacso.swf" width="158" height="140"  /></a><br>
        <a href="http://www.suzuki.com">
	    <embed src="../images/suzuki.swf" width="158" height="140"  /></a><br>       
     			</p>
               </td>
              </tr>
              </table>
              </td>
                         
            <td> 
            <table class="7">
              <tr>
                <td>
                <p align='center' ><i><b><span id="head_content">.::.BÁO ĐIỆN TỬ.::.</span></b></i></p>
                
                